﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 舵机调试工具
{
    public partial class AddBehaviorForm : Form
    {

        public AddBehaviorForm()
        {
            InitializeComponent();
        }

        public AddBehaviorForm(string title, string s)
        {
            InitializeComponent();
            this.Text = title;
            label1.Text = title;
            TB_name.Text = s;
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
        public string name = "";
        private void BTN_cancle_Click(object sender, EventArgs e)
        {
            name = "";
            this.Close();
        }

        private void BTN_OK_Click(object sender, EventArgs e)
        {
            name = TB_name.Text;
            this.Close();
        }
    }
}
